home *** CD-ROM | disk | FTP | other *** search
- on MakeTempLists
- global tAction, tTWNS, tJOBS
- set tTWNS to list()
- set KAT_LQDS to list()
- set DEST_LQDS to list()
- set tJOBS to list()
- repeat with i = 1 to count(tAction)
- set i to i + 1
- set P to getAt(tAction, i)
- if stringp(P) then
- if P contains "D" then
- delete char 1 of P
- append(tTWNS, value(P))
- next repeat
- end if
- if P contains "K" then
- delete char 1 of P
- append(tJOBS, value(P))
- end if
- end if
- end repeat
- set i to count(tAction)
- set LK to 0
- repeat while (i > 0) and (LK < 16)
- set P to getAt(tAction, i)
- if stringp(P) then
- if P contains "K" then
- set LK to LK + 1
- delete char 1 of P
- append(KAT_LQDS, value(P))
- end if
- end if
- set i to i - 1
- end repeat
- if count(KAT_LQDS) < 16 then
- repeat with n = count(KAT_LQDS) + 1 to 16
- setAt(KAT_LQDS, n, 0)
- end repeat
- end if
- set i to count(tAction)
- set LD to 0
- repeat while (i > 0) and (LD < 16)
- set P to getAt(tAction, i)
- if stringp(P) then
- if P contains "D" then
- set LD to LD + 1
- delete char 1 of P
- append(DEST_LQDS, value(P))
- end if
- end if
- set i to i - 1
- end repeat
- if count(DEST_LQDS) < 16 then
- repeat with n = count(DEST_LQDS) + 1 to 16
- setAt(DEST_LQDS, n, 0)
- end repeat
- end if
- end
-